/**
 * 缺陷统计
 *
 * Created by yyz on 2024/11/05.
 */
const mongoose = require('mongoose');
const schemaDefinition = require('./schema/rule-stat');
const schemaInstance = mongoose.Schema(schemaDefinition);
schemaInstance.index({ versionId: 1, ruleId: 1 });
const modelInstance = mongoose.model('rule-stat', schemaInstance);

/**
 * Export model definition object.
 */
module.exports = modelInstance;
